import { WeaLocaleProvider, WeaCheckbox } from 'ecCom';
const getLabel = WeaLocaleProvider.getLabel;
export default class DeleteRow extends React.Component {
    render() {
        const { isDeleteRow, isField, ...restProps } = this.props;
        if (isField) {
            return (
                <div className="ant-row">
                    <label>{getLabel('506303','删除行')}</label>
                    <WeaCheckbox ecId={`${this && this.props && this.props.ecId || ''}_WeaCheckbox@yj3wra`}
                    value={isDeleteRow}
                    display="switch"
                    id='delete'
                    style={{display: 'inline'}} {...restProps} /> 
                </div>
            )
        }
        return null;
    }
}